<!-- NewTrainPay.html -->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>热门资讯</title>
		<link rel="stylesheet" href="../../css/base.css">
		<link rel="stylesheet" href="../../css/CFNetPP_Base.css">
		<style type="text/css">
			.nav-right-img {
				width: 22px;
				margin-top: 10px;
				margin-left: 10px;
			}
		</style>
	</head>
	<body>
		<div class="base_style_color" id='BarAppearance' style="height: 22px;width: 100%"></div>
		<!-- <div class="base_navigation_bar base_style_color base_navigation_item_bar">
			<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="nav_title"></span>
		</div> -->
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/jquery.min.js"></script>
	<script type="text/javascript">
		apiready = function() {
			setupSubframe();
			setupNotifi();
		}
		function setupSubframe() {
			var rect = {
				x : 0,
				y : 22,
				w : 'auto',
				h : 'auto'
			};
			api.openFrame({
				name : 'QRCode_frame',
				url : api.pageParam.url,
				rect : rect,
				bounces : false
			});
			api.openFrame({
			    name: 'BackSuspensionWindow',
			    url: '../StudyPlanManage/BackSuspensionWindow.html',
			    rect: {
			        x: 0,
			        y: 22,
			        w: 44,
			        h: 44
			    },
			    bounces: false
			});
		}
		function setupNotifi(){
			api.addEventListener({
			    name: 'WebPageNotifi'
			}, function(ret, err) {
			    if (ret.value.id == 2) {
			        api.closeWin();
			    }
			});
			api.addEventListener({
			    name: 'backFrameGoBackNotifi'
			}, function(ret, err) {
			    backClick();
			});
			api.addEventListener({
			    name: 'keyback'
			}, function(ret, err) {
			    backClick();
			});
		}
		function backClick(){
			api.historyBack({
			    frameName: 'QRCode_frame'
			}, function(ret, err) {
			    if (!ret.status) {
			        api.closeWin();
			    }
			});
		}
	</script>
</html>